import { Entity, PrimaryGeneratedColumn, Column, OneToMany } from 'typeorm';
import { Product } from './product.entity';

@Entity('category')
export class Category {
  @PrimaryGeneratedColumn('uuid')
  categoryId: string;

  @Column()
  categoryName: string;

  @OneToMany(() => Product, (product) => product.category)
  productList: Product[];
}
